package com.longsunhd.yum.buffalo.bean;

import java.util.List;

/**
 * 作者：黄宣淇
 * 时间：2021/5/12 0012
 * 如何代码没有备注，一个月后，只有你和上帝知道--鲁迅
 */
public class FieldFormationBean {

    /**
     * name : ID
     * field : id
     * type : hidden
     * value : null
     * require : false
     * url : https: //wlwadmin.longsunhd.com/api/manage/drug-option
     * option : [{"value":0,"name":"口服"},{"value":1,"name":"外用"},{"value":2,"name":"注射"}]
     */

    private String name;
    private String field;
    private String type;
    private Object value;
    private boolean require;
    private String url;
    private List<OptionBean> option;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public boolean isRequire() {
        return require;
    }

    public void setRequire(boolean require) {
        this.require = require;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<OptionBean> getOption() {
        return option;
    }

    public void setOption(List<OptionBean> option) {
        this.option = option;
    }

    public static class OptionBean {
        /**
         * value : 0
         * name : 口服
         */

        private int value;
        private String name;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
